<?php
$has_cust_inv = $this->requestAction('supplier_admins/has_cust_inventories');

// ดูว่า Supplier นี้มีเก็บคลังลูกค้าไว้ที่ Supplier เองหรือไม่
$customers = $this->requestAction('supplier_admins/has_supplier_inventories');
?>

<?php echo $this->element('displayHeader'); ?>
<hr />

<?php if ($has_cust_inv) { ?>
<div class="portlet" style="width: 500px;">
    <h1>Customer Stock Alert</h1>
    <div>
        <?php echo $this->requestAction('users/cust_stock_alerts', array('return')); ?>
    </div>
</div>
<?php } ?>

<script type="text/javascript">
U
    $j(function() {
        $j(".portlet").accordion({
            autoHeight: false
//            collapsible: true,
//            active: false
        });
    });

</script>